/*
 * Connection.h
 *
 *  Created on: 2010-7-13
 *      Author: zhzuo
 */

#ifndef CONNECTION_H_
#define CONNECTION_H_

#include "language.h"
#include "config.h"
#include <QSqlDatabase>
#include <QSqlError>
#include <QSqlQuery>
#include <QSqlRecord>
#include <QSqlField>

class Connection
{
public:
	static bool IsInited();
	static bool Init();
	static bool OpenDb();
	static QSqlQuery* CreateQueryConn();
};

#endif /* CONNECTION_H_ */
